Power the TaskPool with a sync channel
authorAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 04:23:48 +0000 (21:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 2 Aug 2014 07:16:19 +0000 (00:16 -0700)
commit09addb7aaa2a13fcb4727a7066d9d563ae508149
treec9744b5ed20897db5c6b7a3ac448666c569a55e3
parent2874b68e64e8c6b0e20933c922b349f2d29ba194
Power the TaskPool with a sync channel

This rate limits the jobs entering the pool to ensure that the number of
pending jobs is actually close to the number of cores. The current behavior is
to print all pending jobs, even when they're not executing, which may be
confusing.
src/cargo/util/pool.rs